# -*- coding:utf-8 -*-

from selenium import webdriver

import pickle

# prepare webdriver
ff = webdriver.Firefox()

if __name__ == '__main__':
    input("Please login in and then press Enter")
    with open("out.pickle", 'wb') as f:
        pickle.dump(ff.get_cookies(), f)
    print("Saved to out.pickle")
    ff.quit()
